﻿using System;
using System.Collections.Generic;

using System.Text;

namespace System.Text
{
    public class Charset
    {
        public static Encoding forName(string name)
        {
            try
            {
                return Encoding.GetEncoding(name);
            }
            catch
            {
                return Encoding.UTF8;
            }
        }
    }
}
